package com.hm.ipay.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

public class AccountTransactionRecord {
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateAt;

    private Long userId;

    private String userName;

    private Integer transactionType;

    private BigDecimal transactionAmount;

    private Byte tradeDirection;

    private BigDecimal preTransactionAmount;

    private BigDecimal postTransactionAmount;

    private Byte frozenStatus;

    private Long transactionOpposite;

    public Long getTransactionOpposite() {
        return transactionOpposite;
    }

    public void setTransactionOpposite(Long transactionOpposite) {
        this.transactionOpposite = transactionOpposite;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public Integer getTransactionType() {
        return transactionType;
    }

    public void setTransactionType(Integer transactionType) {
        this.transactionType = transactionType;
    }

    public BigDecimal getTransactionAmount() {
        return transactionAmount;
    }

    public void setTransactionAmount(BigDecimal transactionAmount) {
        this.transactionAmount = transactionAmount;
    }

    public Byte getTradeDirection() {
        return tradeDirection;
    }

    public void setTradeDirection(Byte tradeDirection) {
        this.tradeDirection = tradeDirection;
    }

    public BigDecimal getPreTransactionAmount() {
        return preTransactionAmount;
    }

    public void setPreTransactionAmount(BigDecimal preTransactionAmount) {
        this.preTransactionAmount = preTransactionAmount;
    }

    public BigDecimal getPostTransactionAmount() {
        return postTransactionAmount;
    }

    public void setPostTransactionAmount(BigDecimal postTransactionAmount) {
        this.postTransactionAmount = postTransactionAmount;
    }

    public Byte getFrozenStatus() {
        return frozenStatus;
    }

    public void setFrozenStatus(Byte frozenStatus) {
        this.frozenStatus = frozenStatus;
    }
}